package com.tegtech.common.constant;

import com.tegtech.common.properties.AppProperties;

/**
 * 通用常量信息
 * 
 * @author Jun
 */
public class Constants {
	
	/**
	 * 默认分页显示第一页
	 */
	public static final int PAGE_NUM = 1;
	
	/**
	 * 默认分页每页显示记录数量
	 */
	public static final int PAGE_SIZE = 10;
	
	/**
	 * 令牌前缀
	 */
	public static final String JWT_USER_KEY = "user_key";
	
	/**
	 * 缓存key
	 */
	public static class Key {
		// 构建完整的缓存KEY
		public static String of(String key) {
			return AppProperties.getBaseCacheKey() + key;
		}
	}

}
